export type SearchParams = {
  pageNum?: number
  pageSize?: number
  roleName?: string
  roleKey?: string
  status?: number
  beginTime?: string
  endTime?: string
}

export type RoleItem = {
  role_id: number
  role_name: string
  role_key: string
  status: number
  description: string
  create_time: string
}

export type ListResult = {
  pageNum: number
  pageSize: number
  rows: RoleItem[]
  total: number
}

export type RoleIdParams = {
  role_id: number
}

export type RoleParams = {
  role_id?: number
  role_name?: string
  role_key?: string
  description?: string
  status?: number
}

export type RoleStateParams = {
  roleId: number
  status: number
}

export type RoleVoList = {
  role_id: number
  role_name: string
}

export type MenuIdList = {
  menu_id: number
}

export type AssignPermissionsParams = {
  menu_ids: number[]
  role_id: number
}
